﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListBlogsILikeByMember.ascx.cs" Inherits="SocialFront.Web.usercontrols.Membership.ListBlogsILikeByMember" %>
<%@ Import Namespace="SocialFront.Entities"%>

<h2>Blogs I Like</h2>

<asp:ListView ID="blogsList" runat="server">
    <LayoutTemplate>
        <ul><asp:PlaceHolder ID="itemPlaceholder" runat="server" /></ul>
    </LayoutTemplate>
    <ItemTemplate>
        <li>
            <a href="<%# ((Blog)Container.DataItem).PageUrl %>"><%# ((Blog)Container.DataItem).Title %></a>
            <br />
            <a href="<%# ((Blog)Container.DataItem).Member.MemberUrl %>"><%# ((Blog)Container.DataItem).Member.LoginName %></a>
            <br />
            <%# ((Blog)Container.DataItem).CreatedDate.ToString("dd MMM yyyy")%>
        </li>
    </ItemTemplate>
    <EmptyDataTemplate><p>I've not Liked any blogs yet!</p></EmptyDataTemplate>
</asp:ListView>